﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Data;

using JigsawService.Parsers;
using JigsawService.Utility;

namespace JigsawService.Controllers
{
    public class Content : JigsawBase
    {
        APIMessage _apimessage;

        public Content(APIMessage apiMessage)
        {
            _apimessage = apiMessage;
        }

        /// <summary>
        /// 
        /// </summary>
        public void Controller()
        {
            _apimessage.StateMessage = "Testing Controller: ";

            // method access authorization
            if (_apimessage.ValidateMethodAccess(_apimessage.APIString))
            {
                switch (_apimessage.APIString)
                {
                    case "Content.GetFileInfo.Base":
                        GetFileInfo();
                        break;



                }
            }
            else
            {
                throw new Exception("Method Authorization Failed for " + _apimessage.APIString);
            }
        }

        // ****************************************
        // ****************************************

        /// <summary>
        /// 
        /// </summary>
        protected void GetFileInfo()
        {
            _apimessage.StateMessage = "Testing EchoData: ";
            DataTable fileInfo = new DataTable();

            
        }

    }
}